package homework04;

import java.time.LocalDateTime;

public class User {
    public String name;
    public String password;
    public LocalDateTime registrationTime;
    public LocalDateTime loginTime;

    public User(String name, String password) {
        this.name = name;
        this.password = password;
        this.registrationTime = LocalDateTime.now();
    }

    public String getName() {
        return name;
    }

    public String getPassword() {
        return password;
    }

    public LocalDateTime getRegistrationTime() {
        return registrationTime;
    }

    public void setLoginTime(LocalDateTime loginTime) {
        this.loginTime = loginTime;
    }
}
